package com.swinboo.im.integration;

import com.huang.base.AbstractIntegrationFactoryBean;
import com.swinboo.im.client.IMClient;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @author Swinboo
 * @date 2022-03-13 11:53
 * @description:
 */

@Component(value = IMIntegration.BEAN_NAME)
public class IMIntegration extends AbstractIntegrationFactoryBean<IMClient> {

    public static final String BEAN_NAME = "IMIntegration";

    @Resource
    private IMClient imClient;


    @Override
    protected IMClient getTarget() {
        return imClient;
    }

    @Override
    protected Class<IMClient> getTargetClass() {
        return IMClient.class;
    }
}
